<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta content="IE=8" http-equiv="X-UA-Compatible" />
    <title></title>
    {$QPath}
    <link rel="stylesheet" type="text/css" href="__TMPL__../Admin/Public/base.css" />
    <script type="text/javascript" src="__TMPL__../Admin/Public/jquery.js"></script>
    <script type="text/javascript" src="__TMPL__../Admin/Public/base.js"></script>
    <style type="text/css">
        #welcome{
            padding:20px 20px 10px;
            font-size:16px;
            font-weight:bold;
            color:#0040C5;
        }
        #tips{
            padding:0 20px;
        }
        #tips li{
            height:22px;
            line-height:22px;
            padding:4px 0;
        }
        #lastLogin label{padding:0 16px 0 0;font-family:"Comic Sans MS";}
    </style>
</head>
<body>
    <div id="container">
        <p id="welcome">
            <script type="text/javascript">
                var hour = (new Date()).getHours();
                if (hour < 4) { hello = "{%daybreak}";}
                else if (hour < 7) { hello = "{%am_1}";}
                else if (hour < 9) { hello = "{%am_2}"; }
                else if (hour < 12) { hello = "{%am_3}";}
                else if (hour < 14) { hello = "{%noon}";}
                else if (hour < 17) { hello = "{%pm}";}
                else if (hour<19) { hello="{%evening}";}
                else { hello = "{%night}";}
                document.write(hello);
            </script>
            {$userVo['realname']}
        </p>
        <ul id="tips">
            <present name="userVo['DATE']">
            <li id="lastLogin">
            {%lastlogin}<label>{$userVo['DATE']|date='Y-m-d H:i:s',###}</label>{%ipis}<label>{$userVo['IP']}</label>
            </li>
            </present>
        </ul>
    </div>
</body>
</html>
